#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.exception;

import lombok.EqualsAndHashCode;

/**
 * Description: OpenFeign异常类
 *
 * @author YL
 * @date 2019/8/6 15:28
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@EqualsAndHashCode(callSuper = true)
public class FeignInterException extends Exception {

    /**
     * 异常码
     */
    private final int code;
    /**
     * 异常信息
     */
    private final String message;

    public FeignInterException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

}
